Přeskočit na hlavní obsah

Module: lib/formiojsWrapper

Functions​

CreateFormio​

▸ CreateFormio(url, options?): Promise<Formio>

Create a new Formio instance. Prefer this function over the Formio constructor.

Parameters​

NameTypeDescription
urlstringURL of the formio instance.
options?ObjectOptions for the formio instance.

Returns​

Promise<Formio>

Defined in​

src/web-app/src/lib/formiojsWrapper.tsx:11


FormioComponentLoader​

▸ FormioComponentLoader<T>(loader, loading?): ComponentType<T>

Loader which takes care of setting the base URL of the Formio library automatically.

Type parameters​

Name
T

Parameters​

NameTypeDescription
loader() => LoaderComponent<T>Loader of the formio component.
loading?ElementElement to display while the component is loading.

Returns​

ComponentType<T>

The dynamically loaded component.

Defined in​

src/web-app/src/lib/formiojsWrapper.tsx:33